package com.woniuxy.finance.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.woniuxy.finance.model.dto.ConditionsFindBusDto;
import com.woniuxy.finance.model.dto.UpdateBus;
import com.woniuxy.finance.model.entity.BusinessCompetitor;
import com.woniuxy.finance.model.vo.ClientVo;
import com.woniuxy.finance.model.vo.FindClientNameAndBalanceVo;

import java.util.List;

/**
 * <p>
 * 友商信息表; 服务类
 * </p>
 *
 * @author chenlin
 * @since 2023-09-06
 */
public interface BusinessCompetitorService extends IService<BusinessCompetitor> {
    Page<BusinessCompetitor> findClientAll(Integer type,Integer page, Integer size);
    Page<BusinessCompetitor> findClientByAcct(String acct,Integer type, Integer page, Integer size);
    boolean addClient(BusinessCompetitor businessCompetitor, String account);
    IPage<BusinessCompetitor> conditionsFindBus(ConditionsFindBusDto condition);
    boolean updateBusById(UpdateBus updateBus);
    boolean attBusById(Integer id);
    boolean noAttBusById(Integer id);
    boolean openById(Integer id);
    boolean closeById(Integer id);
//    Page<BusinessCompetitor> findVendorAll(Integer page, Integer size);
//    Page<BusinessCompetitor> findVendorByStatus(String status, Integer page, Integer size);
//    boolean addVendor(BusinessCompetitor businessCompetitor, String account);
    Page<BusinessCompetitor> findBus(Integer page,Integer size);
    Page<BusinessCompetitor> findBusByType(Integer type, Integer page, Integer size);
    Page<BusinessCompetitor> conditionsFindAtt(String condition, Integer page, Integer size);

    List<ClientVo> getName();

    List<BusinessCompetitor> findSupplierBycondition(String name, String status, Integer type);

    boolean delBusById(Integer id);

    List<FindClientNameAndBalanceVo> findClientNameAndBalance();

    List<FindClientNameAndBalanceVo> findClientNameAndRechargeTotal();

    String getEmailById(Integer id);
}
